﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class NetState : MonoBehaviour
{

    
    public static bool isNet = true;
    public bool isnet;
    public static bool isNet2 = false;

    public static bool isPhone = false;


    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        isnet = isNet;
        if(Input.GetKeyDown(KeyCode.I))
        {
            isNet = true;
            //print("进入联网模式");
        }
        if (Input.GetKeyDown(KeyCode.O))
        {
            isNet = false;
            //print("切换离线模式");
        }
        if(Input.GetKeyDown(KeyCode.J))
        {
            isNet2 = true;
        }
        if (Input.GetKeyDown(KeyCode.K))
        {
            isNet2 = false;
        }
        /*if(isPhone == true)
        {
            GetComponent<OnlinePlayerContol>().enabled = false;
        }
        else if(isPhone == false)
        {
            GetComponent<OnlinePlayerContol>().enabled = true;
        }*/
    }
}
